import request from '@/utils/request'

// 营业月度报表
export function monthReportList(query) {
    return request({
        url: `/system/purchaseStatistics/monthReport`,
        method: 'get',
        params: query
    })
}
// 营业月度报表头部
export function monthReportTotal(query) {
    return request({
        url: `/system/purchaseStatistics/monthReportTotal`,
        method: 'get',
        params: query
    })
}
// 营业年度报表
export function yearReport(query) {
    return request({
        url: `/system/purchaseStatistics/yearReport`,
        method: 'get',
        params: query
    })
}
// 营业年度报表
export function yearReportTotal(query) {
    return request({
        url: `/system/purchaseStatistics/yearReportTotal`,
        method: 'get',
        params: query
    })
}

// 统计报表-营业点
export function listDept(query) {
  return request({
    url: `/system/dept/list`,
    method: 'get',
    params: query
  })
}

// 统计报表-营业员
export function listSaleman(query) {
  return request({
    url: `/system/user/selectUserListExceptAdmin`,
    method: 'get',
    params: query
  })
}
